package com.retry.task.core.model;

import com.google.gson.JsonObject;
import com.retry.task.core.utils.GsonTool;

/**
 * @author gao.gwq
 * @version 1.0
 * @date 2022/10/22  22:20
 * @Description TODO 重试任务的attribute对象
 */
public class AttributeModel {

    /**
     * 任务循环的次数
     */
    private int loopNum;


    /**
     * 最早产生traceId的
     */
    private String originTraceId;


    private String taskName;

    private String projectName;

    public int getLoopNum() {
        return loopNum;
    }

    public void setLoopNum(int loopNum) {
        this.loopNum = loopNum;
    }

    public String getOriginTraceId() {
        return originTraceId;
    }

    public void setOriginTraceId(String originTraceId) {
        this.originTraceId = originTraceId;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    @Override
    public String toString() {
        return GsonTool.toJsonString(this);
    }
}